@echo off
cd /d %~dp0

REM Initialize development environment
call "checkEnv.bat"

REM Create output directory if not exists
if not exist build_nmake mkdir build_nmake
if not exist x64 mkdir x64

REM Build using nmake
nmake /nologo /f Makefile

REM Check if build was successful
if exist "x64\HelloNmake.exe" (
    echo Build successful: x64\HelloNmake.exe created
) else (
    echo Build failed: x64\HelloNmake.exe not found
)

echo Build process completed
pause 